﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 构造方法
{
    class Staff
    {
        private int _number;
        private string _name;
        private string _department;

        public int Number
        {
            get
            {
                return this._number;
            }
            set
            {
                this._number = value;
            }
        }
        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }
        public string Department
        {
            get
            {
                return this._department;
            }
            set
            {
                this._department = value;
            }
        }
        public  Staff()
        {
            
        }

        public void Info()
        {
            Console.WriteLine("员工编号{0},员工姓名{1}，员工部门{2}", this.Number, this.Name, this.Department);
        }
        public  Staff(int number,string name, string department)
        {
            this._number = Number;
            this._name = Name;
            this._department = Department;
            Console.WriteLine("员工编号{0},员工姓名{1}，员工部门{2}", this.Number, this.Name, this.Department);
        }
    }
}
